﻿using Xejen.Ipc.Framework.Flows;
using System;
using System.Collections.Generic;
using System.Text;

namespace Xejen.Ipc.Framework.Steps
{
    /// <summary>
    /// 表示控制器事件参数
    /// </summary>
    /// <typeparam name="TData"><inheritdoc cref="IFlow{TData}" path="/typeparam[@name='TData']"/></typeparam>
    /// <creator>marc</creator>
    public class StepEventArgs<TData> : EventArgs
        where TData : new()
    {
        /// <inheritdoc cref="IStepInstance"/>
        public IStepInstance Step { get; set; }

        /// <summary>
        /// <inheritdoc cref="StepEventArgs{TData}"/>
        /// </summary>
        /// <param name="step"><inheritdoc cref="IStepInstance" path="/summary"/></param>
        public StepEventArgs(IStepInstance step)
        {
            Check.NotNull(step, nameof(step));

            Step = step;
        }
    }
}
